﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpSphinx.Util.Configuration
{
    public class PropertyException : Exception 
    {
        private String InstanceName;
        private String propertyName;


        public PropertyException(string instance, String propertyName, string msg)
        {
            this.InstanceName = instance;
            this.propertyName = propertyName; 
           // this.
        }

        public PropertyException(Exception e)
            : base(e.Message)
        {

        }


        public String getProperty()
        {
            return propertyName;
        }


        public override string ToString()
        {

            return "Property exception: InstanceName: " + InstanceName + " propertyName: " + propertyName + base.ToString();
        }
    }
}
